﻿@model AutomatedTestDataManagement.Models.Site

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Site</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.SiteName, "Site Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SiteName)
            @Html.ValidationMessageFor(model => model.SiteName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SiteURL, "URL")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SiteURL)
            @Html.ValidationMessageFor(model => model.SiteURL)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SiteRoot, "Site Root")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SiteRoot)
            @Html.ValidationMessageFor(model => model.SiteRoot)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SiteDescription, "Description")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SiteDescription)
            @Html.ValidationMessageFor(model => model.SiteDescription)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.Partial("_NavigationManagementNav")
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
